from zhipuai import ZhipuAI

client = ZhipuAI(api_key="e489e66bc224b07f5c1c420147e80f5e.hfpAtCW2CZFNjORP") # Fill in your own APIKey
response = client.chat.completions.create(
    model="glm-4v-plus",  # Fill in the model name to be called
    messages=[
      {
        "role": "user",
        "content": [
          {
            "type": "video_url",
            "video_url": {
                "url" : "https://www.gtyan.com/book/241/source_code/Ch7/ride.mp4"
            }
          },
          {
            "type": "text",
            "text": "Please describe this video in detail"
          }
        ]
      }
    ]
)
print(response.choices[0].message)